<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%String path = request.getContextPath();%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<table class="result-tab" width="100%">
    <tr>
        <th class="tc" width="5%"><input class="allChoose" name="" type="checkbox">排序</th>
        <th>ID</th>
        <th>姓名</th>
        <th>账户</th>
        <th>注册时间</th>
        <th>登陆IP</th>
        <th>登陆时间</th>
        <th>在线状态</th>
        <th>账号状态</th>
        <th>操作</th>
    </tr>
<c:forEach items="${requestScope.adminPageInfo.list}" var="admin" varStatus="stat">
    <tr id="tr${admin.id}">
        <td class="tc"><input name="id[]" value="59" type="checkbox">${stat.index+1}</td>
        <td>
            <input name="ids[]" value="59" type="hidden">
            <input class="common-input sort-input" name="ord[]" value="${admin.id}" type="text">
        </td>
        <td>${admin.name}</td>
         <td>${admin.account}</td>
        <td><fmt:formatDate value="${admin.regTime}" pattern="yyyy-MM-dd"/></td>
        <td>${admin.loginIP}</td>
        <td><fmt:formatDate value="${admin.loginTime}" pattern="yyyy年MM月dd日HH时mm分ss秒"/></td>
        <td>
            <c:if test="${empty admin.loginIP}">
                <span style="color: red">未登录</span>
            </c:if>
            <c:if test="${not empty admin.loginIP}">
                <span style="color: green">已登录</span>
            </c:if>
        </td>
        <td>
            <c:if test="${admin.mark eq 0}">
                <span style="color: red">账号以被禁用</span>
            </c:if>
            <c:if test="${admin.mark eq 1}">
                <span style="color: green">正常使用</span>
            </c:if>
        </td>
        <td>
            <c:if test="${admin.mark eq 0}">
                <a class="link-dell"  data-id="${admin.id}">解封</a>
            </c:if>
            <c:if test="${admin.mark eq 1}">
                <a class="link-del"  data-id="${admin.id}">封禁</a>
            </c:if>

        </td>
    </tr>
</c:forEach>
</table>
<div class="list-page">
    <td>
    <c:forEach  items="${requestScope.adminPageInfo.navigatepageNums}" var="i">
        <a href="#" id="${i}">${i}</a>
    </c:forEach>
    </td>
</div>
